package server.write;

import java.nio.channels.*;
import java.net.*;
import java.util.Set;

public class Write {

	public static void main(String[] args) throws Exception {
		SocketChannel sc = SocketChannel.open();
		sc.configureBlocking(false);

		Selector selector = Selector.open();

		sc.register(selector, SelectionKey.OP_CONNECT);
		sc.connect(new InetSocketAddress("127.0.0.1", 9999));
		selector.select();
		Set<SelectionKey> keys = selector.selectedKeys();

		sc.finishConnect();
	}
}
